﻿using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace CMSMVC4.Areas.Admin.Models
{
    public class NewsModels
    {

        [Required(ErrorMessageResourceType = typeof(MultiResource.AdminModels),
            ErrorMessageResourceName = "TitleNewsRequired")]
        public string TitleEn { get; set; }


        [Required(ErrorMessageResourceType = typeof(MultiResource.AdminModels),
            ErrorMessageResourceName = "TitleNewsRequired")]
        public string TitleVi { get; set; }

        [AllowHtml]
        public string ContentEn { get; set; }

        [AllowHtml]
        public string ContentVi { get; set; }

        [AllowHtml]
        public string SumEn { get; set; }

        [AllowHtml]
        public string SumVi { get; set; }

        [Required]
        [RegularExpression("[0-9]*")]
        public int Pageid { get; set; }

        [Required]
        [RegularExpression("[0-9]*")]
        public int Pagelagvi { get; set; }

        [Required]
        [RegularExpression("[0-9]*")]
        public int Pagelagen { get; set; }

        [Required]
        [RegularExpression("[0-9]*")]
        public int CateId { get; set; }

        public string Img { get; set; }

        public SelectList Listdata { get; set; }
    }
}